package xmlStateMachine {
	import flash.events.Event;

	public class XMLEvent extends Event {

		// Possible incoming events to change state
		public static const FILE_LOAD_REQUESTED:String      = "onFileLoadRequested";
		public static const FILE_LOAD_COMPLETE:String       = "onFileLoadComplete";
		public static const FILE_LOAD_FAILED:String         = "onFileLoadFailed";
		public static const FILE_UNLOAD_REQUESTED:String    = "onFileUnloadRequested";
		public static const XML_PARSING_STARTED:String      = "onXMLParsingStarted";
		public static const XML_PARSING_COMPLETE:String     = "onXMLParsingComplete";
		public static const XML_PARSING_FAILED:String       = "onXMLParsingFailed";
		public static const MACHINE_RESET:String            = "onMachineReset";

		/**
		 * Creates a new StateMachineEvent.
		 * @param	type The type of this particular event.
		 */
		public function XMLEvent(type:String) {
			super(type, false, true);
		}

		override public function clone():Event {
			return new XMLEvent(type);
		}

		override public function toString():String {
			return "xmlStateMachine.XMLEvent";
		}
	}
}